package com.security.door.service.Impl;

import com.github.pagehelper.PageInfo;
import com.security.door.core.base.BaseService;
import com.security.door.dao.mapper.keyAttachMapper;
import com.security.door.model.domain.keyAttach;
import com.security.door.model.dto.keyAttachDto;
import com.security.door.service.IkeyAttachService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class keyAttachService extends BaseService<keyAttach> implements IkeyAttachService {
    @Autowired
    keyAttachMapper ikeyAttachMapper;

    public PageInfo<keyAttach> queryListWithPage(keyAttachDto entity) {
        var actionList = ikeyAttachMapper.queryListWithPage(entity);
        return new PageInfo<>(actionList);
    }

    public int updateStatus(String guid) {
        return ikeyAttachMapper.updateStatus(guid);
    }
}
